/**
 * Copyright (C) 2010 EduSubmit Team (Ersin Er, Sukru Tikves)
 * 
 * This work can be distributed under the terms of 
 * GNU Library General Public License (LGPL) v2.1
 */
package info.edusubmit.services.contracts;

import java.security.AccessControlException;

/**
 * @author Sukru
 *
 */
public interface AuthorizationService {
	void requireAssistant(String token) throws AccessControlException;
	void requireAdmin(String token) throws AccessControlException;
	
	Boolean canAccessResource(String token, String resourceType, String resource, String accessLevel) 
		throws AuthenticationException;
}
